package com.yhj.handler;

import com.yhj.vo.Request;

/**
 * @author yaohj
 * @date 2025年02月05日 10:13
 */
public abstract class AbstractHandler implements Handler{
    private Handler handler;

    @Override
    public void setNext(Handler next){
        this.handler = next;
    }

    public void passHandler(Request request) {
        if(handler != null){
            handler.handle(request);
        }
    }
}
